#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

int countVowelSubstrings(char* word);
bool judge(char* chs, int start, int end);

int main()
{
	return 0;
}

char vowel[5] = { 'a', 'e', 'i', 'o', 'u' };
int countVowelSubstrings(char* word)
{
	int res = 0;
	for (int right = 0; word[right]; right++)
		for (int left = 0; left < right - 3; left++)
			res += judge(word, left, right);

	return res;
}

bool judge(char* chs, int start, int end)
{
	if (end - start < 4) return false;

	int bitmap = 0, i;
	for (int idx = start; idx <= end; idx++) {
		for (i = 0; i < 5; i++)
			if (chs[idx] == vowel[i]) {
				bitmap |= 1 << i;
				break;
			}
		if (i == 5) {
			bitmap |= 1 << 5;
			break;
		}
	}
	if (bitmap == 0b11111) {
		/* printf("%d:%s\n", end - start, chs + start); */
		return true;
	}
	return false;
}
